package com.lin.ovc.pomodoro.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lin
 * @since 2024-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Task implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 任务ID
     */
    @TableId(value = "Id", type = IdType.ID_WORKER)
      private Integer id;

    /**
     * 任务名字
     */
    private String name;

    /**
     * 任务时间
     */
    private Integer time;

    /**
     * 所属的任务清单ID
     */
    private Integer planId;

    @TableField(fill = FieldFill.INSERT)
    private Timestamp create_time;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp update_time;
}
